﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Jzy.Core.Common.Basic;
using System.Configuration;

namespace FortuneHeaven.Web.Common
{
    public class BasePath
    {
        //HttpRuntime.AppDomainAppVirtualPath
        public static string MainPage =  VirtualPathUtility.ToAbsolute("~/Default.aspx");//GlobalVar.WebAppPath +
        public static string News = VirtualPathUtility.ToAbsolute("~/Pages/News/AllNews.aspx");
        public static string Download =  VirtualPathUtility.ToAbsolute("~/Pages/Download/Download.aspx");
        public static string Charge = VirtualPathUtility.ToAbsolute("~/Pages/Charge/ChargeCenter.aspx");
        public static string Shop = VirtualPathUtility.ToAbsolute("~/Pages/Shop/GameShowPurchase.aspx");
        public static string Gift = VirtualPathUtility.ToAbsolute("~/Pages/Shop/GiftPurchase.aspx");
        public static string Lottery = VirtualPathUtility.ToAbsolute("~/Lottery/LotteryShow.aspx");


        private static string adminurl;
        public static string AdminURL
        {
            get
            {
                if (string.IsNullOrEmpty(adminurl))
                {
                    adminurl= ConfigurationManager.AppSettings["AdminURL"];
                }
                return adminurl;
            }
        }
    }
}